﻿<navigation:Page  x:Class="SomethingSpacial.Views.Admin.UserGroupList" 
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
            xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl"
            xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  
            xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
            xmlns:vm="clr-namespace:SomethingSpacial.ViewModel"
            Title="UserGroups List Page">
            <navigation:Page.DataContext>
                <vm:UserGroupsViewModel x:Name="vmUserGroups"  />
            </navigation:Page.DataContext>

            <StackPanel x:Name="LayoutRoot" Margin="0"  Style="{StaticResource ContentStackPanelStyle}" >

                <Border x:Name="borderList" HorizontalAlignment="Left" Margin="0,0,10,10" VerticalAlignment="Top" CornerRadius="10" BorderThickness="1" BorderBrush="Black" Padding="10" Background="#FFFAFAFA" Width="500">
            		<StackPanel x:Name="stackPanelList" Orientation="Vertical" VerticalAlignment="Top" Background="White" Margin="0" d:LayoutOverrides="Width" Height="450" HorizontalAlignment="Left">
            			<TextBlock x:Name="textBlockListingHeader" Text="User Group Listing" TextWrapping="Wrap" FontWeight="Bold" FontSize="13.333" Foreground="#FF1D1472" HorizontalAlignment="Left"/>
            			<activity:Activity x:Name="activityContent" IsActive="{Binding IsBusy, ElementName=dds}" >
                        <StackPanel x:Name="stackPanelDetails" Orientation="Vertical" VerticalAlignment="Top" Height="450" Width="450" HorizontalAlignment="Left">
                            <dataControls:DataForm x:Name="editDataForm"   Header="User Group Details"
            				CurrentItem="{Binding}" BorderThickness="0" Height="413" Width="450" HeaderVisibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" >
                                <dataControls:DataForm.EditTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <dataControls:DataField Label="User Group Name"   >
                                                <TextBox Text="{Binding UserGroupName, Mode=TwoWay}" Width="250" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Description"   >
                                                <TextBox Text="{Binding UserGroupDescription, Mode=TwoWay}" Width="280" Height="50" HorizontalAlignment="Left" TextWrapping="Wrap"   />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Contact Name"   >
                                                <TextBox Text="{Binding ContactName, Mode=TwoWay}" Width="150" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Contact Email"   >
                                                <TextBox Text="{Binding ContactEmail, Mode=TwoWay}" Width="200" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="URL"   >
                                                <TextBox Text="{Binding UserGroupURL, Mode=TwoWay}" Width="200" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="News Feed"   >
                                                <TextBox Text="{Binding NewsFeedSource, Mode=TwoWay}" Width="280" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Tweet Source"   >
                                                <TextBox Text="{Binding TweetSource, Mode=TwoWay}" Width="280" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Facebook"   >
                                                <TextBox Text="{Binding Facebook, Mode=TwoWay}" Width="280" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                            <dataControls:DataField Label="Email List"   >
                                                <TextBox Text="{Binding EmailList, Mode=TwoWay}" Width="280" HorizontalAlignment="Left" />
                                            </dataControls:DataField>
                                        </StackPanel>
                                    </DataTemplate>
                                </dataControls:DataForm.EditTemplate>
                            </dataControls:DataForm>
                        </StackPanel>

                    </activity:Activity>
            			<StackPanel x:Name="stackPanelActionButtons" Orientation="Horizontal" Height="39">
            				<Button x:Name="buttonSubmit" Content="Update" Width="105" Height="28"	Click="SubmitButton_Click"	/>
            			</StackPanel>
            		</StackPanel>

            	</Border>

            </StackPanel>

</navigation:Page>
